package com.atguigu.utils;

import java.sql.Timestamp;

// 点击事件POJO Class
// 必须是公有类
public class ClickEvent {
    // 所有字段必须是公有字段
    public String username;
    public String url;
    public Long ts;

    // 必须有空构造器
    public ClickEvent() {
    }

    public ClickEvent(String username, String url, Long ts) {
        this.username = username;
        this.url = url;
        this.ts = ts;
    }

    @Override
    public String toString() {
        return "(" + username + "," + url + "," +
                "" + new Timestamp(ts) + ")";
    }
}
